/*
    SUSAN® - Sole of Unix Save ANything

   Copyright (C) 2016-2019 Skyatlas co. ltd

   
*/

#ifndef BAREOS_LIB_PARSE_CONF_CALLBACKS_H_
#define BAREOS_LIB_PARSE_CONF_CALLBACKS_H_ 1

struct ResourceItem;
class BareosResource;
class ConfigurationParser;

typedef bool (*SaveResourceCb_t)(int type, ResourceItem* item, int pass);
typedef void (*DumpResourceCb_t)(int type,
                                 BareosResource* res,
                                 bool sendmsg(void* sock, const char* fmt, ...),
                                 void* sock,
                                 bool hide_sensitive_data,
                                 bool verbose);

typedef void (*FreeResourceCb_t)(BareosResource* res, int type);
typedef void (*ParseConfigBeforeCb_t)(ConfigurationParser&);
typedef void (*ParseConfigReadyCb_t)(ConfigurationParser&);

#endif /* BAREOS_LIB_PARSE_CONF_CALLBACKS_H_ */
